.container {
  display: flex;
  flex-direction: column;
  height: 94vh;
  background-color: #f8f9fa;
}

.education-cards-scroll {
  width: 100%;
  white-space: nowrap;
}

.education-cards {
  display: flex;
  padding: 10px 0;
}

.education-card {
  flex-shrink: 0;
  width: 200px;
  margin-right: 15px;
}

.main-content {
  padding: 15px;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* 导航栏样式 */
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20rpx 30rpx;
  background-color: #ffffff;
  box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
}

.user-info {
  display: flex;
  align-items: center;
}

.avatar {
  width: 60rpx;
  height: 60rpx;
  border-radius: 50%;
  margin-right: 15rpx;
}

.welcome {
  font-size: 28rpx;
  color: #333;
  font-weight: 500;
}

.search-box {
  background-color: #f5f5f5;
  border-radius: 30rpx;
  padding: 10rpx 20rpx;
  width: 300rpx;
}

.search-box input {
  font-size: 24rpx;
  height: 40rpx;
  width: 100%;
}

/* 主内容区域样式 */
.main-content {
  /* flex: 1; */
  width: calc(100vw - 60rpx);
  padding: 30rpx;
}

.module-section {
  margin-bottom: 40rpx;
  background-color: #ffffff;
  border-radius: 15rpx;
  padding: 30rpx;
  box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.05);
}

.module-header {
  margin-bottom: 25rpx;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.module-title {
  font-size: 34rpx;
  font-weight: bold;
  color: #333;
  position: relative;
  padding-left: 20rpx;
}

.module-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8rpx;
  height: 30rpx;
  background-color: #4caf50;
  border-radius: 4rpx;
}

.module-desc {
  font-size: 26rpx;
  color: #666;
  margin-top: 5rpx;
}

.module-more {
  font-size: 24rpx;
  color: #4caf50;
}

/* 教育卡片样式 */
.education-cards {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.education-card {
  width: 30%;
  background-color: #ffffff;
  border-radius: 12rpx;
  overflow: hidden;
  box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.education-card:active {
  transform: scale(0.98);
}

.card-image {
  width: 100%;
  height: 160rpx;
  object-fit: cover;
}

.card-content {
  padding: 15rpx;
}

.card-title {
  font-size: 28rpx;
  font-weight: bold;
  color: #333;
  margin-bottom: 8rpx;
  display: block;
}

.card-desc {
  font-size: 22rpx;
  color: #666;
  display: block;
  line-height: 1.4;
}

/* 文章列表样式 */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 25rpx;
}

.article-item {
  display: flex;
  background-color: #ffffff;
  border-radius: 12rpx;
  overflow: hidden;
  padding: 20rpx;
  box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.05);
}

.article-image {
  width: 180rpx;
  height: 120rpx;
  border-radius: 8rpx;
  object-fit: cover;
  margin-right: 20rpx;
}

.article-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-title {
  font-size: 28rpx;
  font-weight: bold;
  color: #333;
  margin-bottom: 10rpx;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-summary {
  font-size: 24rpx;
  color: #666;
  margin-bottom: 10rpx;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.article-meta {
  font-size: 22rpx;
  color: #999;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
  .education-card {
    width: 48%;
    margin-bottom: 20rpx;
  }

  .education-cards {
    justify-content: space-around;
  }
}

@media screen and (max-width: 480px) {
  .education-card {
    width: 100%;
    margin-bottom: 20rpx;
  }
}
